<!DOCTYPE html>
<div style="width:auto; background:#CCC;">
    aaaaa<wbr />bbbbb<wbr />ccccc
</div>
<br />
<div style="width:50px; background:#CCC;">
    aaaaa<wbr />bbbbb<wbr />ccccc
</div>